public class Main {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}
import cn.animal.*;

public class Main {
    public static void main(String[] args) {
        AnimalLoc testAnimalLoc = new AnimalLoc();

        Animal anm1 = new Animal();
        Animal anm2 = new Animal();
        Animal anm3 = new Animal();
        Animal anm4 = new Animal();

        anm1.setAnimalName("牛");
        anm2.setAnimalName("羊");
        anm3.setAnimalName("猪");
        anm4.setAnimalName("鸡");

        testAnimalLoc.addAnimal(anm1);
        testAnimalLoc.addAnimal(anm2);
        testAnimalLoc.addAnimal(anm3);
        testAnimalLoc.addAnimal(anm4);

        System.out.println(testAnimalLoc.displayAllAnimals());
        System.out.println("--------------------------------------------");

        testAnimalLoc.deleteAnimal("羊");

        testAnimalLoc.updateAnimal(anm3,anm4);

        System.out.println(testAnimalLoc.displayAllAnimals());

        System.out.println("----------------------------------------------");

        DepartmentManCollection topDepartment = new DepartmentManCollection();

        topDepartment.setDepartmentBelongs(new DepartmentInfo("董事会","六层"));

        topDepartment.addPeople(new ZooPeopleAdmin("猪"));

        System.out.println(topDepartment.displayAllPeople());
    }
}